﻿@model LanDBom.Models.Formation

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Genertals.cshtml";
}

<h2>修改物料信息</h2>


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <fieldset class="boun">
        <table class="form-horizontal table-app" cellpadding="5">
            @Html.ValidationSummary(true, "", new { @class = "text-danger" })
            @Html.HiddenFor(model => model.FM_ID)
            <tr class="form-group">
                <td>@Html.Label("物料编号", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.EditorFor(model => model.FM_bai, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
                    @Html.ValidationMessageFor(model => model.FM_bai, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("物料名称", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.EditorFor(model => model.FM_name, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.FM_name, "", new { @class = "text-danger" })
                </td>
            </tr>
            <tr class="form-group">
                <td>@Html.Label("物料分类名称", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.DropDownList("MA_ID", null, htmlAttributes: new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.mateial.MA_fne, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("物料长度", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.EditorFor(model => model.FM_long, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.FM_long, "", new { @class = "text-danger" })
                </td>
            </tr>

            <tr class="form-group">
                <td>@Html.Label("物料宽度", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.EditorFor(model => model.FM_kuan, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.FM_kuan, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("物料高度", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.EditorFor(model => model.FM_gao, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.FM_gao, "", new { @class = "text-danger" })
                </td>
            </tr>

            <tr class="form-group">
                <td>@Html.Label("物料单价", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.EditorFor(model => model.FM_price, new { htmlAttributes = new { @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.FM_price, "", new { @class = "text-danger" })
                </td>
                <td>
                    @Html.Label("计量单位", htmlAttributes: new { @class = "control-label " })
                </td>
                <td class="">
                    @Html.DropDownList("MA_ID", null, htmlAttributes: new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.FM_ji, "", new { @class = "text-danger" })
                </td>
            </tr>

            <tr class="form-group">

                <td>@Html.Label("供应商信息", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.DropDownList("PR_ID", null, htmlAttributes: new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Providers.PR_name, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("采购类型", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    <select class="form-control" id="FM_Zhuang" name="FM_Zhuang">
                        <option value="外购">外购</option>
                        <option value="外购">自制</option>
                    </select>
                    @Html.ValidationMessageFor(model => model.FM_Zhuang, "", new { @class = "text-danger" })
                </td>
            </tr>
            <tr class="form-group">

                <td>@Html.Label("供应商信息", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.DropDownList("PR_ID", null, htmlAttributes: new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Providers.PR_name, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("采购类型", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    <select class="form-control" id="FM_Zhuang" name="FM_Zhuang">
                        <option value="外购">外购</option>
                        <option value="外购">自制</option>
                    </select>
                    @Html.ValidationMessageFor(model => model.FM_Zhuang, "", new { @class = "text-danger" })
                </td>
            </tr>
            <tr class="form-group">

                <td>@Html.Label("供应商信息", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.DropDownList("PR_ID", null, htmlAttributes: new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Providers.PR_name, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("采购类型", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    <select class="form-control" id="FM_Zhuang" name="FM_Zhuang">
                        <option value="外购">外购</option>
                        <option value="外购">自制</option>
                    </select>
                    @Html.ValidationMessageFor(model => model.FM_Zhuang, "", new { @class = "text-danger" })
                </td>
            </tr>
            <tr class="form-group">

                <td>@Html.Label("供应商信息", htmlAttributes: new { @class = "control-label " })</td>
                <td class="">
                    @Html.DropDownList("PR_ID", null, htmlAttributes: new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Providers.PR_name, "", new { @class = "text-danger" })
                </td>
                <td> @Html.Label("采购类型", htmlAttributes: new { @class = "control-label " })</td>
                <td>
                    <select class="form-control" id="FM_Zhuang" name="FM_Zhuang">
                        <option value="外购">外购</option>
                        <option value="外购">自制</option>
                    </select>
                    @Html.ValidationMessageFor(model => model.FM_Zhuang, "", new { @class = "text-danger" })
                </td>
            </tr>
            <tr class="form-group">
                <td class="col-md-offset-2 ">
                    <input type="submit" value="修改" class="btn-sm btn-default" />
                </td>
                <td><button class="btn-sm btn-default">@Html.ActionLink("返回列表", "Index", "Formations", new { @style = "color:#000" })</button> </td>
            </tr>
        </table>
    </fieldset>
}
